package it.uniroma3.dia.ia.textcategorization.texcat;

/**
 * 
 * This class provides access to TexCat's configuration.
 * 
 * @author Marco Liceti
 *
 */
public final class TexCatConfiguration {
	
	private static String WORKSPACE_PATH_NAME;
	private static String DEFAULT_TEXT_PERSISTENCE_MANAGER_NAME;
	private static String DEFAULT_DATA_SOURCE_NAME;
	private static String DEFAULT_CATEGORIZER_BUILDER_NAME;
	
	static {
		WORKSPACE_PATH_NAME = "workspace";
		DEFAULT_TEXT_PERSISTENCE_MANAGER_NAME = "filesystem";
		DEFAULT_DATA_SOURCE_NAME = "odpdump";
		DEFAULT_CATEGORIZER_BUILDER_NAME = "opennlp";
	}
	
	/**
	 * 
	 * Sets the workspace.
	 * 
	 * @param pathName The path name to use as workspace.
	 * 
	 */
	public static void setWorkspacePathname(String pathName) {
		WORKSPACE_PATH_NAME = pathName;
	}
	
	public static String getWorkspacePathname() {
		return WORKSPACE_PATH_NAME;
	}

	public static String getDefaultTextPersistenceManager() {
		return DEFAULT_TEXT_PERSISTENCE_MANAGER_NAME;
	}
	
	public static String getDefaultDataSourceName() {
		return DEFAULT_DATA_SOURCE_NAME;
	}
	
	public static String getDefaultCategorizerBuilderName() {
		return DEFAULT_CATEGORIZER_BUILDER_NAME;
	}

}
